{include file="header.tpl" }
{literal}
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
{/literal}
<img src='{#t_images#}navi.gif' border=0 alt="">{$nav_link}<table width="100%">
<TR align=center bgcolor="#FFFFFF">
  <TD height="1"></TD>
  </TR>
</TABLE>
<table width="98%" border=0 cellspacing=0 cellpadding=0 align=center>
<tr>
<td width="170" height="50%" valign="top">{include file="left.tpl"}<!-- left start --></td>
<!-- left end -->
<td valign="top">
  {if $code eq "01"}{if $none}
  <p>&nbsp;</p>
  <center>你还没有开店，请点【<span class="style1"><a href="index.php?act=Seller&code=08"><font color="#FF0000">这里</font></a></span>】添加你的第一个店铺</center>{else}
  <table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
    <tr>
      <td width="50%" valign=top>
        <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
          <tr>
            <td>
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
                <tr>
                  <td valign="top"><form action="" method="post">
				  <table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                        <tr class=left_head>
                          <td colspan="2" class="topmenu">查询条件</td>
                          </tr>
                        <tr class='f_one'>
                          <td width="139">查看特定商铺商品</td>
                          <td width="607"><select name=gid class="form">
                            
                {html_options values=$shop_id  output=$shop_name}
                          
                          </select></td>
                        </tr>
                        <tr class='f_one'>
                          <td>是否标记                            </td>
                          <td>                            <input type="radio" name="mark" value="0">
                            正在销售
                              
                              <input type="radio" name="mark" value="1">
                              停止销售
                              <input name="mark" type="radio" value="2" checked>
                              全部</td>
                        </tr>
                        <tr class='f_one'>
                          <td>是否活跃</td>
                          <td><input type="radio" name="active" value="0">
                            活跃
                              <input type="radio" name="active" value="1">
                              非活跃
                              <input name="active" type="radio" value="2" checked>
                              全部</td>
                        </tr>
                        <tr>
                          <td colspan="2">                            <input name="code" type="hidden" id="code" value="02"></td>
                          </tr>
                      
                  </table>
				  <br>
                  <center>
                    <input name="submit223" type="submit" class="form" id="submit223" value=" 查 询 ">
                  </center>
                  </form></td>
                </tr>
            </table></td>
          </tr>
      </table></td>
    </tr>
  </table>
  {/if}{elseif $code eq "02"}
  <table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
    <tr>
      <td width="50%" valign=top>
        <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
          <tr>
            <td>
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='WORD-WRAP: break-word'>
                <tr >
                  <td ><table width="100%"  border="0">
                      <tr>
                        <td width="35"><img src="{#t_images#}icon02_1112.gif" width="32" height="32"></td>
                        <td width="60"><strong>小提示：</strong></td>
                        <td>1.点击“<font color="#FF9966">留言</font>”管理客户对该商品的留言，您给他们的及时回复有利于提高你的商品销售。</td>
                      </tr>
                      <tr>
                        <td height="15" colspan="2">&nbsp;</td>
                        <td>2.点击“<font color="#FF9966">修改</font>”可以更改您的商品价格，照片，描述等。</td>
                      </tr>
                      <tr>
                        <td height="41" colspan="2">&nbsp;</td>
                        <td >3.如果点击“<font color="#FF9966">标记已卖</font>”,您可以停止该商品交易，这样客户就不能看见您的商品。停止交易的商品则会出现“<font color="#FF9966">恢复交易</font>”选项，点击后商品回复交易。此功能对你没有库存，脱销非常有用。同时您可以记录您所卖出去的所有商品，以便进行市场分析。</td>
                      </tr>
                      <tr>
                        <td height="41" colspan="2">&nbsp;</td>
                        <td >4.如果您的商品超过有效期（有效期长短由商家等级决定），系统会自动将商品放入“<font color="#FF9966">等待激活商品</font>”队列（即，不在前台显示，不能被用户查看到）,激活后的商品将作为新品上架商品显示在前面！同时建议商家在激活前核对商品分类和说明信息，以便客户更好了解您的商品。</td>
                      </tr>
                      <tr>
                        <td height="18" colspan="2">&nbsp;</td>
                        <td >5.“<font color="#FF9966">首页推广</font>”：付费功能，可以把某个商品置顶到便利店首页，起到广告和宣传作用！</td>
                      </tr>
                      <tr>
                        <td  colspan="3" class="red">{$msg}</td>
                      </tr>
                  </table></td>
                </tr>
                <tr>
                  <td height="113" valign="top"><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                      <tr class=left_head>
                        <td width="25%"  class="topmenu">商品名（ID）</td>
                        <td width="14%"  class="topmenu">上架时间</td>
                        <td width="15%"  class="topmenu">失效日期</td>
                        <td width="10%"  class="topmenu">价格(折扣%)</td>
                        <td width="8%"  class="topmenu">人气</td>
                        <td width="25%" align="center"  class="topmenu">管理操作</td>
                      </tr>
                    {section name=datak loop=$g_data}
                    <tr class='f_one'>
                      <td><a href="index.php?act=gd&GOODS_ID={$g_data[datak][6]}" target="_blank">{$g_data[datak][0]}</a>({$g_data[datak][6]})</td>
                      <td>{$g_data[datak][1]}</td>
                      <td>{$g_data[datak][2]}</td>
                      <td>{$g_data[datak][3]}</td>
                      <td>{$g_data[datak][4]}{if $g_data[datak][7]} <br>
                        (<font color="#FF0000">{$g_data[datak][7]}条新留言</font>){/if}</td>
                      <td colspan="2"><div align="center"><a href="index.php?act=Seller&code=17&GOODS_ID={$g_data[datak][6]}">留言</a>&nbsp;|&nbsp;<a href="index.php?act=Seller&code=12&GOODS_ID={$g_data[datak][6]}">改</a>&nbsp;|&nbsp;<a href="index.php?act=Seller&code=15&GOODS_ID={$g_data[datak][6]}" onclick="return confirmDel('是否删除商品')">删</a>&nbsp;|&nbsp;<a href="index.php?act=Seller&code=idx&GOODS_ID={$g_data[datak][6]}">首页推广</a>&nbsp;<br>
                              <a href="index.php?act=Seller&code=21&GOODS_ID={$g_data[datak][6]}">{if $g_data[datak][5]}<font color="#FF0000">恢复交易</font>{else}标记已卖{/if}</a> {if $code eq "actgoods"}| <a href="index.php?act=Seller&code=doactive&GOODS_ID={$g_data[datak][6]}">激活</a>{/if} </div></td>
                    </tr>
                    {/section}
                  </table></td>
                </tr>
            </table></td>
          </tr>
      </table></td>
    </tr>
  </table>
  {elseif $code eq "addg"}
  {if $none}
<p>&nbsp;</p>
  <center>你还没有开店，请点【<span class="style1"><a href="index.php?act=Seller&code=08"><font color="#FF0000">这里</font></a></span>】添加你的第一个店铺</center>{else}  
  
  {literal}
      <SCRIPT language=Javascript>
     <!--
        function valid()
	{           
	         var errors='';
	         gn = fastaddgoods.elements['ag[goods_name]'];
		 if( !gn.value )  errors = "- 必须提供商品名！\n";
                 
		 p = fastaddgoods.elements['goods_price'];
		 if( !p.value ) errors += "- 必须提供商品价格！\n";
                 if( isNaN(p.value) ) errors += "- 商品价格必须是数字（单位：元）！\n";
		 
		 d = fastaddgoods.elements['goods_discount'];
                 if( isNaN(d.value) ) errors += "- 商品折扣必须是数字（单位：%）！\n";


		 if (errors) alert('发生了如下错误:\n'+errors);
		 return(errors=='');
	}
	     
     -->
    </script>
      {/literal}
  <table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
    <tr>
      <td width="50%" valign=top>
        <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
          <tr>
            <td>
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
                <tr >
                  <td><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                      <form action="" method="post" enctype="multipart/form-data" name="fastaddgoods" onSubmit="return valid();">
                        <tr class='f_one'>
                          <td width="207">上架商铺 </td>
                          <td width="333"><select name=shop_id class="form">
                            
                            
                {html_options values=$shop_id  output=$shop_name}
                          
                          
                          </select></td>
                        </tr>
                        <tr class='f_one'>
                          <td>商品名</td>
                          <td width="333"><input name="ag[goods_name]" type="text" class="form" id="ag[goods_name]">
                            <span class="red">*</span></td>
                        </tr>
                        <tr class='f_one'>
                          <td> 商品价格（单位：元）</td>
                          <td><input name="ag[goods_price]" type="text" class="form" id="goods_price" value="0">
                              <span class="red">* 0代表‘面议'</span></td>
                        </tr>
                        <tr class='f_one'>
                          <td> 商品折扣（单位：%）</td>
                          <td><input name="ag[goods_discount]" type="text" class="form" id="goods_discount">
                          %</td>
                        </tr>
                        <tr class='f_one'>
                          <td> 有效日期（单位：天）</td>
                          <td><input name="ag[goods_valid_period]" type="text" class="form" id="ag[goods_valid_period]2">
                          天</td>
                        </tr>
                        <tr class='f_one'>
                          <td> 商品描述</td>
                          <td><textarea name="ag[goods_describle]" cols="80" rows="10" class="form" id="textarea4"></textarea></td>
                        </tr>
                        <tr class='f_one'>
                          <td>商家是否推荐</td>
                          <td><span class="red">
                            <input type="checkbox" name="ag[goods_seller_recommend]">
                          </span></td>
                        </tr>
                        <tr class='f_one'>
                          <td>系统分类</td>
                          <td><select name=ag[goods_cat_id] class="form">
                              
                            
                              
        {html_options values=$cat_id  output=$cat_name}
     
                  
                            
                          
                            </select>
                              <span class="red"> *</span>                          </td>
                        </tr>
                        <tr class='f_one'>
                          <td rowspan="2">上传照片</td>
                          <td><input name="up_pic" type="file" class="form" id="up_pic4">
                          </td>
                        </tr>
                        <tr class='f_one'>
                          <td>（必须是jpg或gif格式的1M以下大小的文件，请选用大约150 X 150的图片）</td>
                        </tr>
                        <tr>
                          <td><input name="submit" type="submit" id="submit" value="  提 交  ">
                              <input name="code" type="hidden" class="form" id="code4" value="doaddg"></td>
                          <td>&nbsp;</td>
                        </tr>
                      </form>
                  </table></td>
                </tr>
            </table></td>
          </tr>
      </table></td>
    </tr>
  </table>
 {/if} {else}
  <table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top>
      <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='WORD-WRAP: break-word'>
              <tr class="head">
                <td height="51"><img src="{#t_images#}hint.gif" width="32" height="32">欢迎登陆<b><A href="">{$html_title}</A></b>，请在左边选择您的操作</td>
                </tr>
              <tr>
                <td height="113" valign="top"><br>
                  您上次登陆时间是：{$seller.seller_last_time|date_format:"%Y-%m-%d"}<br><br>{$prop}<br><br>{if not $notice}
                  您目前开了<font color="#FF0000">{$snum}</font>个商铺，共登陆<font color="#FF0000">{$gnum}</font>件商品，点击[<a href="index.php?act=Seller&code=16"><font color="#FF0000">这里</font></a>]管理商品。<br>
                  <br>
                  您目前有<font color="#FF0000">{$mnum}</font>条新的留言未回复，点击[<a href="index.php?act=Seller&code=16"><font color="#FF0000">这里</font></a>]回复消息<br><br>
                  同时，我们还为您准备了个性域名为“<a href="http://{$seller.seller_logaccount}.{$domain}/" title="点击进入商家的个人主页(此个人主页列出商家所有店铺信息！)" target='_blank'><font color="#FF0000">http://{$seller.seller_logaccount}.{$domain}/</font></a>”便于推广您的商业{else}
                  {$notice}{/if}</td>
                </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
  {/if}<br></td><!-- right end -->
</tr>
</table><table width="100%">
<TR align=center bgcolor="#FFFFFF">
  <TD height="1"></TD>
  </TR>
</TABLE>
{include file="Info.tpl"}<table width="100%">
<TR align=center bgcolor="#FFFFFF">
  <TD height="1"></TD>
  </TR>
</TABLE>
</td></tr></table>
{include file="footer.tpl"}